package com.factory.code.service.model;

import lombok.Data;

import java.io.File;
import java.util.List;

@Data
public class TreeNodeModel {


    public TreeNodeModel(File file) {
        this.path = file.getPath();
        this.isDirectory = file.isDirectory();
        this.name = file.getName();
    }

    private String path;
    private String name;
    private String icon;
    private boolean isDirectory;

    private List<TreeNodeModel> children;
}
